package space.xxhui.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by hui on 2017/7/11.
 */
@Controller
public class indexController {

    @RequestMapping("/")
    public String home(){
        System.out.println("index");
        return "async";
    }


    @RequestMapping("/index")
    public String hello(){
        System.out.println("index");
        return "hello";
    }

    @RequestMapping("gotoLogin")
    public String getLogin(){
        System.out.println("login");
        return "Login";
    }
}
